package com.example.pet.service.impl;

import com.example.pet.dao.ShoppingcartDao;
import com.example.pet.entity.Shoppingcart;
import com.example.pet.service.ShoppingcartService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ShoppingcartServiceImpl  implements ShoppingcartService {
    @Resource
    private ShoppingcartDao shoppingcartDao;


    @Override
    public List<Shoppingcart> queryAll(Integer userId) {
        return shoppingcartDao.queryAll(userId);
    }
}
